<!DOCTYPE HTML>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../../css/aui/aui.css" />
		<link rel="stylesheet" type="text/css" href="../../css/iconfont/iconfont.css" />
		<style type="text/css">
			.aui-switch:checked {
				background: #4385f6 !important;
				border-color: #4385f6 !important;
				box-shadow: #4385f6 0 0 0 26px inset !important;
			}
			.aui-list-view-cell:after {
				border-bottom: 1px solid #d7d7d7;
				margin-left: 55px;
			}
			.aui-list-view-cell:last-child:after {
				border-bottom: 1px solid #d7d7d7;
				margin-left: 0;
			}
			.aui-list-view-cell {
				color: #767677;
			}
			.icon-bg-70a1cd {
				color: #70a1cd !important;
			}
			.icon-bg-84c9a5 {
				color: #84c9a5 !important;
			}
			.icon-bg-eac14d {
				color: #eac14d !important;
			}
			.icon-bg-7658f8 {
				color: #7658f8 !important;
			}
			.icon-bg-e6567a {
				color: #e6567a !important;
			}
			.icon-bg-0b5743 {
				color: #0b5743 !important;
			}
			.icon-bg-919adf {
				color: #919adf !important;
			}
			.icon-bg-b5292a {
				color: #b5292a !important;
			}
			.aui-badge {
				margin-right: 20px;
				margin-top: 4px;
			}
			li.aui-list-view-cell:active {
				background: #f4f4f4;
			}
			.aui-switch {
				margin-right: 0;
			}
		</style>
	</head>
	<body>
		<div class="aui-content">
			<ul class="aui-list-view">
				<li class="aui-list-view-cell" tapmode>
					<i class="aui-iconfont iconfont icon-dingwei icon-bg-70a1cd"></i>允许定位
					<input type="checkbox" class="aui-switch aui-pull-right" checked="">
				</li>
				<li class="aui-list-view-cell" tapmode>
					<i class="aui-iconfont iconfont icon-yidongwangluo01 icon-bg-84c9a5"></i>移动网络加载图片
					<input type="checkbox" class="aui-switch aui-pull-right">
				</li>
				<li class="aui-list-view-cell" tapmode onclick="H.$toast('Alpha版本暂不支持检查更新！');">
					<i class="aui-iconfont iconfont icon-jianchagengxin icon-bg-eac14d"></i>检查更新<span style="float: right;font-size:14px;color:#666;margin-top:3px;">V0.3.0</span>
				</li>
				<li class="aui-list-view-cell" tapmode onclick="H.openApp(null, {iosUrl : 'http://git.oschina.net/winu.net/DotDot',uri : 'http://git.oschina.net/winu.net/DotDot'});">
					<div class="aui-arrow-right">
						<i class="aui-iconfont iconfont icon-gongnengyejiarukaiyuanxiangmu icon-bg-eac14d"></i>开源地址
					</div>
				</li>
				<li class="aui-list-view-cell" tapmode onclick="H.$openWin('update_log_head','update_log_head.html');">
					<div class="aui-arrow-right">
						<i class="aui-iconfont iconfont icon-jilu icon-bg-7658f8"></i>版本历程 <span class="aui-badge aui-badge-info aui-pull-right">有更新</span>
					</div>
				</li>
				<li class="aui-list-view-cell" tapmode id="clear-cache">
					<div class="aui-arrow-right">
						<i class="aui-iconfont iconfont icon-qinglihuancun icon-bg-e6567a"></i>清除缓存 <span class="aui-badge aui-badge-success aui-pull-right">0 M</span>
					</div>
				</li>
				<li class="aui-list-view-cell" tapmode id="resetall">
					<i class="aui-iconfont iconfont icon-zhongzhi icon-bg-b5292a"></i>清空所有配置
				</li>
				<li class="aui-list-view-cell" tapmode onclick="H.$openWin('suggest_head','suggest_head.html')">
					<div class="aui-arrow-right">
						<i class="aui-iconfont iconfont icon-yijian icon-bg-0b5743"></i>意见反馈
					</div>
				</li>
				<li class="aui-list-view-cell" tapmode onclick="H.$openWin('aboutMe_head','aboutMe_head.html')">
					<div class="aui-arrow-right">
						<i class="aui-iconfont iconfont icon-guanyuwomen icon-bg-919adf"></i>关于我们
					</div>
				</li>
			</ul>
		</div>
		<div class="aui-content">
			<p style="padding: 0 10px">
				<button class="aui-btn aui-btn-success aui-btn-block" id="login-out">
					退出登录
				</button>
			</p>
		</div>
	</body>
	<script type="text/javascript" src="../../script/AHelper.js"></script>
	<script type="text/javascript" src="../../script/zepto.min.js"></script>
	<script type="text/javascript">
		Zepto(function($) {
			// 清除缓存
			$("#clear-cache").on("tap", function() {
				api.clearCache(function(ret, err) {
					$("#clear-cache span.aui-badge").text("0 M");
					H.$toast("清除成功");
				});
			});
			$("#resetall").on("tap", function() {
				H.$confirm(function() {
					H.$showProgress();
					H.$removePrefs(function() {
						H.$toast("清除成功");
						H.$hideProgress();
					}, 'launch');
				}, function() {
					H.$toast("你已取消操作");
				}, "你确定要清空所有配置吗？");
			});
			$("#login-out").on("tap", function() {
				H.$removePrefs(function() {
					H.$toast("退出成功");
					setTimeout(function() {
						H.$openWin('login_head', '../login/login_head.html');
					}, 1000);
				}, 'user_info');
			});
		});
		H.ready(function() {
			api.getCacheSize(function(ret, err) {
				if (ret) {
					$("#clear-cache span.aui-badge").text((ret.size / 1000 / 1000).toFixed(2) + " M");
				} else {
					$("#clear-cache span.aui-badge").text("0 M");
				}
			});
		});
	</script>
</html>